/*
 * @Description: 审批信息数据模型(之前在组件中，现在单独抽出来)
 * @Author: wind-lc
 * @version: 1.0
 * @Date: 2023-01-05 14:25:50
 * @LastEditTime: 2023-01-05 14:45:16
 * @FilePath: \cscec-pms-admin\src\views\appApproval\model.js
 */
// 审批信息表头
const columnApproveCurrent = [
  {
    title: '序号',
    dataIndex: 'serial',
    width: 65,
    scopedSlots: { customRender: 'serial' }
  },
  {
    title: '节点名称',
    dataIndex: 'taskName'
  },
  {
    title: '处理人',
    dataIndex: 'userName',
    scopedSlots: { customRender: 'userName' }
  },
  {
    title: '处理结果',
    dataIndex: 'auditResult',
    width: 120
  },
  {
    title: '审批意见',
    dataIndex: 'opinions',
    scopedSlots: { customRender: 'opinions' },
    width: 300
  },
  {
    title: '开始时间',
    dataIndex: 'createTime',
    width: 120
  },
  {
    title: '滞留时间',
    dataIndex: 'durationInMillis',
    width: 120
  },
  {
    title: '结束时间',
    dataIndex: 'endTime',
    width: 120
  }
]
const columnApprove = [
  {
    title: '序号',
    dataIndex: 'serial',
    width: 80,
    scopedSlots: { customRender: 'serial' }
  },
  {
    title: '节点名称',
    dataIndex: 'name'
  },

  {
    title: '发起人',
    dataIndex: 'userName'
  },
  {
    title: '发起时间',
    dataIndex: 'startTime'
  },
  {
    title: '滞留时间',
    dataIndex: 'durationTime'
  },
  {
    title: '结束时间',
    dataIndex: 'endTime'
  }
]
const columnApproveDetail = [
  {
    title: '审批人',
    dataIndex: 'userName'
  },
  {
    title: '处理结果',
    dataIndex: 'auditResult',
    width: 120
  },
  {
    title: '审批时间',
    dataIndex: 'createTime'
  },
  {
    title: '节点名称',
    dataIndex: 'taskName'
  },
  {
    title: '滞留时间',
    dataIndex: 'durationInMillis'
  },
  {
    title: '审批意见',
    dataIndex: 'formData.opinions',
    scopedSlots: { customRender: 'formData.opinions' },
    width: 300
  }
]
// 组件索引(和审批的businessType没有关系，可以自己定义)
const indexKey = {
  321001: 'constructionScheduleApprovalDetailPage'
}
// 组件
const components = {
  // 施工进度总计划施工管理审批信息
  constructionScheduleApprovalDetailPage: () => import('@/views/construction/constructionSchedule/components/ApprovalDetailPage.vue')
}
export {
  columnApproveCurrent,
  columnApprove,
  columnApproveDetail,
  indexKey,
  components
}